import http from "../utils/http/http.js";

//登录
const login = (data) => {
  return http.post("/admin/adminusers/login", data);
};
//获取验证码
const getCode = (data) => {
  return http.post("/admin/adminusers/getPhoneCode", data);
};

//获取用户列表
const getUserList = (data) => {
  return http.post("/admin/users/index", data);
};
//获取用户详情
const getUserDetail = (data) => {
  return http.post("/admin/users/show", { id: data });
};

export default {
  login,
  getCode,
  getUserList,
  getUserDetail,
};
